package com.yunxi.sys.service;

import com.github.pagehelper.PageInfo;
import com.yunxi.core.web.LoginInfo;
import com.yunxi.sys.pojo.UserVO;
import org.springframework.transaction.annotation.Transactional;

import java.lang.reflect.InvocationTargetException;
import java.util.List;
import java.util.Map;

/**
 * Created by xuruzi on 2017/5/3.
 */
public interface UserDubboService {
    UserVO findUserByUserCode(Map map);

    List exportExcel(Map<String, Object> params);

    UserVO saveCas(UserVO User, LoginInfo sysUser) throws Exception;

    UserVO save(UserVO user) throws Exception;

    UserVO getCasId(String id);

    void resetPassword(UserVO user) throws Exception;

    void updatePassword(UserVO sysUser) throws Exception;

    PageInfo page(Map<String, Object> params);

    void removeByList(List<UserVO> userList) throws IllegalAccessException, InvocationTargetException, InstantiationException;

    void update(UserVO user);

    UserVO saveOrUpdate(UserVO user);

    UserVO findPdaUserByUserCode(Map map);

    UserVO getByUserCode(String storageStaffPhone);
}
